package com.sqx.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品和规格中间表
 * @TableName goods_and_sku
 */
@Data
public class GoodsAndSku implements Serializable {
    /**
     * 商品的规格实体
     */
    @ApiModelProperty(value = "规格实体id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    /**
     * 规格id
     */
    @ApiModelProperty(value = "规格id")
    private Long skuId;

    /**
     * 规格子id
     */
    @ApiModelProperty(value = "规格子id")
    private String skuValue;

    private static final long serialVersionUID = 1L;
}